function checkKeyword(){
	var keyword=document.keywordForm.keyword.value;
	if(keyword==""){
		alert("查询商品不能为空");
		return false;
	}
	keyword=encodeURI(encodeURI(keyword));
	window.location.href="/shop_goodslist.html?keyword="+keyword;
	//document.keywordForm.submit();
}

	  	function deltext(){
	  		var vtext = document.getElementById("keyword").value;
	  		var v = document.getElementById("keyword");
	  		if(vtext == "==请输入您的邮箱=="){
	  			document.getElementById("keyword").value="";
	  			v.setAttribute("style='color:#000000'");
	  		}
	  	}
	  	function addtext(){
	  		var vtext = document.getElementById("keyword").value;
	  		var v = document.getElementById("keyword");
	  		if(vtext == ""){
	  			document.getElementById("keyword").value = "==请输入您的邮箱==";
	  			v.setAttribute("style='color:#999999'");
	  		}
	  	}
	  	 function leaveSub(){
	  	 	var user_id='<%=user_id%>';
	  	 	if(user_id==''){
	  	 		window.location.href="/8diantuan_signin.html";
	  	 	}
	  		var vtext = document.getElementById("keyword").value;
			var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
			if(vtext==''){
				alert('请输入您的邮件');
				document.getElementById('keyword').focus();
				return false;
			}else if(!myreg.test(vtext)){
				alert("请输入正确的邮箱信息");
				document.getElementById('keyword').focus();
				return false;
			}
			Ti_subscribeInfo.getIntByKeywrod(vtext,function(ret){
			var v = ret;
			if(v >= 1){
				alert("该邮箱已存在！");
				return false;
			}else{
				document.addForm.submit();
			}
		});
	}
